@ECHO OFF
REM		Utility for gathering all components to form a test bed
REM		Use BLDTY to control Release / Debug versions

IF "%BLDTY%" == "" SET BLDTY=Release

IF NOT EXIST "Misc" MD "Misc"

ECHO.
ECHO	1. Clean current folder ...
ECHO.
DEL *.exe
DEL *.dll
DEL *.PDB

ECHO.
ECHO	2. Remove previous customisation files...
ECHO.
DEL "Misc\UI.cui"
DEL "Misc\UI.mnr"

ECHO.
ECHO	3. Toolbar icons...
ECHO.
XCOPY /E /Y "..\TbImages" Images\

ECHO.
ECHO	4. FSK files...
ECHO.
COPY "..\FSK\bin\%BLDTY%\FSK.dll" "FSK.dll"
COPY "..\FSK\bin\%BLDTY%\FSK.pdb" "FSK.pdb"

ECHO.
ECHO	5. Excel stub ...
ECHO.
COPY "..\xls\build\XL00\%BLDTY%\FSK_XL.dll" "FSK_XL00.dll"
COPY "..\xls\build\XL00\%BLDTY%\FSK_XL.pdb" "FSK_XL00.pdb"

ECHO.
ECHO	6. Excel 11 ...
ECHO.
COPY "..\xls\build\XL11\%BLDTY%\FSK_XL.dll" "FSK_XL11.dll"
COPY "..\xls\build\XL11\%BLDTY%\FSK_XL.pdb" "FSK_XL11.pdb"

ECHO.
ECHO	7. Excel 12 ...
ECHO.
COPY "..\xls\build\XL12\%BLDTY%\FSK_XL.dll" "FSK_XL12.dll"
COPY "..\xls\build\XL12\%BLDTY%\FSK_XL.pdb" "FSK_XL12.pdb"

ECHO.
ECHO	8. Excel default ...
ECHO.
COPY "..\xls\build\XL11\%BLDTY%\FSK_XL.dll" "FSK_XL.dll"
COPY "..\xls\build\XL11\%BLDTY%\FSK_XL.pdb" "FSK_XL.pdb"

ECHO.
ECHO	9. The updater ...
ECHO.
COPY "..\FSK_Updater\bin\%BLDTY%\FSK_Updater.dll" "FSK_Updater.dll"
COPY "..\FSK_Updater\bin\%BLDTY%\FSK_Updater.pdb" "FSK_Updater.pdb"

pause
@ECHO ON
